import createAxios from "@/api/axios.js";

// instance
const instance = createAxios();

// API
instance.API = {
  // 查询聊天记录
  getMessages: (params = {}) => {
    return instance.get(`/api/chat/ai/messages?sessionId=` + params);
  },
  // 查询聊天会话
  getSession: (params = {}) => {
    return instance.get(`/api/chat/ai/sessions?userId=` + params);
  },
};
//
export default instance;
